package com.dingqb.ktdemo.oop


fun main() {
    var ff = Fribonacci(9);
    var mm = mul(5);
    println(ff)
    println(mm)
}

fun Fribonacci(n: Int): Int {
    if (n <= 2) return 1;
    var temp: Int = Fribonacci(n - 1) + Fribonacci(n - 2);
    return temp


}

fun mul(n: Int): Int {
    if (n == 1) return 1;
    return mul(n - 1) * n;
}